package com.itheima.a04threadmethod1;

public class MyThread extends Thread{

    /**
     * 构造方法要重写 不能继承
     */
    public MyThread() {
        super();
    }

    /**
     */
    public MyThread(String name) {
        super(name);
    }

    /**
     *
     */
    @Override
    public void run() {
            for (int i = 1; i <= 100; i++) {
                System.out.println(this.getName() + " @ " + i);
            }
    }
}
